package com.mykt.controller;

import com.mykt.annotation.MyLog;
import com.mykt.baseResult.BaseController;
import com.mykt.baseResult.RespondsResult;
import com.mykt.domain.SystemUser;
import com.mykt.enums.BusinessType;
import com.mykt.enums.OperatorType;
import com.mykt.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;

/**
 * 用户模块
 */
@RestController
@RequestMapping("/mykt/system/user")
public class SystemUserController  extends BaseController
{
    @Autowired
    private SystemUserService systemUserService;

    @GetMapping(value = "/info")
    @MyLog(title = "系统用户查询",businessType = BusinessType.OTHER,operatorType = OperatorType.OTHER)
    public RespondsResult<SystemUser> info(@RequestParam String userName, HttpServletRequest request)  {
        return  responds(systemUserService.getInfo(userName));
    }


}
